import Vue from 'vue'
import Router from 'vue-router'
import Home from './components/Home.vue'
import NewsList from './components/NewsList.vue'
import NewsDetail from './components/NewsDetail.vue'
import PhotoList from './components/PhotoList.vue'
import PhotoInfo from './components/PhotoInfo.vue'
import GoodsList from './components/GoodsList.vue'
import GoodsDetail from './components/GoodsDetail.vue'
import ShopCar from './components/ShopCar.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:Home},
    {path:'/newslist',component:NewsList},
    {path:'/newsdetail/:id',component:NewsDetail},
    {path:'/photolist',component:PhotoList},
    {path:'/photoinfo/:id',component:PhotoInfo},
    {path:'/goodslist',component:GoodsList},
    {path:'/goodsdetail/:id',component:GoodsDetail},
    {path:'/shopcar',component:ShopCar}
  ]
})
